package com.zaey.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JohnSoybean
 * @create 2020/10/16 16:44
 * @description
 */
@RestController
@RefreshScope
public class ConfigClientController {
    @Value("${test.profile}")
    private String configInfo;

    @GetMapping("/configInfo")
    public String getConfigInfo() {
        return configInfo;
    }

}
